# -*- coding: utf-8 -*-
# @Author: QX
# @File: day4_0041init.py
'''
第4课：
【有道云笔记】APP自动化提前预习
https://note.youdao.com/s/A2HyvKBT
1.inspector的使用方法
2.启动APP的基本参数
3.元素定位方法
'''
from time import sleep

from  appium   import webdriver
dic = {
  "platformName": "Android",
  "appium:platformVersion": "9",
  "appium:appPackage": "com.android.settings",
  "appium:appActivity": ".Settings",
  "appium:deviceName": "emulator-5554",
  "appium:automationName": "UIAutomator2"
}
driver = webdriver.Remote('http://127.0.0.1:4723',dic)
sleep(10)

